package com.common.entity.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author: 温洁宇
 * @date: 2021/08/12/10:43
 * Other: 订单实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {

    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 用户名
     */
    private String userName;

    /**
     * 手机号
     */
    private String tel;

    /**
     * 订单类型
     */
    private Integer type;

    /**
     * 支付金额
     */
    private BigDecimal payMoney;

    /**
     * 支付时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    /**
     * 删除标记
     */
    private Integer isDelete;

}
